package com.example.business_oa.service;

import com.example.comment_oa.dubbo.QiDongFuLiLiuChengDubbo;
import com.example.comment_oa.dubbo.QiDongQingJiaLiuChengDubbo;
import com.example.comment_oa.dubbo.SysDeptServiceDubbo;
import com.example.comment_oa.pojos.SysPost;
import io.seata.spring.annotation.GlobalTransactional;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class QiDongFuLiLiuCheng {
    @DubboReference(version = "1.0.0")
    QiDongFuLiLiuChengDubbo qiDongFuLiLiuChengDubbo;

    @DubboReference(version = "1.0.0")
    QiDongQingJiaLiuChengDubbo qiDongQingJiaLiuChengDubbo;

    @GlobalTransactional(timeoutMills = 300000)
    public void qidongliucehng(String GongHao, Map<String, Object> variables,String assignee1,String fulibianhao){
        qiDongFuLiLiuChengDubbo.staterProcessInstanceById(GongHao,variables,assignee1,fulibianhao);
    }

    @GlobalTransactional(timeoutMills = 300000)
    public void qidongQingJiaLiuCheng(String GongHao, Map<String, Object> variables,String assignee1,String fulibianhao){
        qiDongQingJiaLiuChengDubbo.qidongQingJiaLiuCheng(GongHao,variables,assignee1,fulibianhao);
    }


}
